package com.cn.controller;

import com.cn.model.UserInfo;
import com.cn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author jiangwang
 * @Created by 2020/10/14 16:18
 * @Description: TODO
 */
@RestController
public class UserController
{
    @Autowired
    private UserService userService;

    @GetMapping(value = "/getList")
    public List<UserInfo> getList(){
        return userService.getList();
    }

}
